2ba commited on
Commit
7dddbf7
·
verified ·
1 Parent(s): 3b6293a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -53,4 +53,13 @@ def respond(message, history):
53
  for out in stream:
54
  token = out["choices"][0]["text"]
55
  partial += token
56
- yield parti
 
 
 
 
 
 
 
 
 
 
53
  for out in stream:
54
  token = out["choices"][0]["text"]
55
  partial += token
56
+ yield partial
57
+
58
+ demo = gr.ChatInterface(
59
+ fn=respond,
60
+ title="چت‌بات خیلی ساده (CPU رایگان)",
61
+ description="TinyLlama 1.1B (GGUF) روی llama.cpp برای یادگیری راه‌اندازی LLM.",
62
+ )
63
+
64
+ if __name__ == "__main__":
65
+ demo.launch()