Spaces:
Sleeping
Sleeping
Rename main.py to chatter.py
Browse files- main.py → chatter.py +1 -10
main.py → chatter.py
RENAMED
@@ -1,4 +1,3 @@
|
|
1 |
-
import gradio as gr
|
2 |
import g4f
|
3 |
|
4 |
def answer(prompt):
|
@@ -14,12 +13,4 @@ def answer(prompt):
|
|
14 |
return response_text
|
15 |
|
16 |
prompt_input = gr.Textbox(label="Prompt")
|
17 |
-
response_output = gr.Textbox(label="Response")
|
18 |
-
|
19 |
-
def chatbot_interface(prompt):
|
20 |
-
response = answer(prompt)
|
21 |
-
return response
|
22 |
-
|
23 |
-
app = gr.Interface(fn=chatbot_interface, inputs=prompt_input, outputs=response_output)
|
24 |
-
|
25 |
-
app.launch()
|
|
|
|
|
1 |
import g4f
|
2 |
|
3 |
def answer(prompt):
|
|
|
13 |
return response_text
|
14 |
|
15 |
prompt_input = gr.Textbox(label="Prompt")
|
16 |
+
response_output = gr.Textbox(label="Response")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|