M931598 commited on
Commit
2f0d0e8
·
verified ·
1 Parent(s): d6679a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -13,5 +13,8 @@ def chat(input_text):
13
  response = tokenizer.decode(outputs[0], skip_special_tokens=True)
14
  return response
15
 
16
- # رابط گرافیکی Gradio (بدون launch)
17
- demo = gr.Interface(fn=chat, inputs="text", outputs="text", title="چت‌بات فارسی")
 
 
 
 
13
  response = tokenizer.decode(outputs[0], skip_special_tokens=True)
14
  return response
15
 
16
+ # رابط Gradio که Hugging Face بشناسه
17
+ demo = gr.Interface(fn=chat, inputs="text", outputs="text", title="چت‌بات فارسی")
18
+
19
+ # این خط لازم نیست: demo.launch()
20
+ # فقط باید شیء demo تعریف بشه تا Hugging Face بشناسه