Update app.py
Browse files
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 |
-
# رابط
|
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 بشناسه
|