chat / README.md
alibayram's picture
Refactor chatbot implementation to use local model with transformers. Updated README to reflect new dependencies and usage instructions. Removed Hugging Face Inference API integration.
a42856d

A newer version of the Gradio SDK is available: 6.6.0

Upgrade
metadata
title: Chat
emoji: 💬
colorFrom: yellow
colorTo: purple
sdk: gradio
sdk_version: 5.42.0
app_file: app.py
pinned: false
hf_oauth: true
hf_oauth_scopes:
  - read-repos

An example chatbot using Gradio and transformers to run a model locally (downloaded from the Hugging Face Hub).

Notes

  • Model: alibayram/gemma3-tr-v64k-it
  • Auth (optional): If the model is gated/private, sign in via the app’s Hugging Face login button or set HF_TOKEN / HUGGINGFACEHUB_API_TOKEN in your environment.

Local install

pip install -U gradio transformers torch
python app.py