Spaces:
Sleeping
Sleeping
developer3000
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -24,10 +24,6 @@ def my_inference_function(Question):
|
|
24 |
response = llm(prompt, max_tokens=4000)['choices'][0]['text']
|
25 |
return response
|
26 |
|
27 |
-
gradio_interface = gr.ChatInterface(
|
28 |
-
fn = my_inference_function,
|
29 |
-
inputs = "text",
|
30 |
-
outputs = "text"
|
31 |
-
)
|
32 |
|
33 |
gradio_interface.launch()
|
|
|
24 |
response = llm(prompt, max_tokens=4000)['choices'][0]['text']
|
25 |
return response
|
26 |
|
27 |
+
gradio_interface = gr.ChatInterface(my_inference_function)
|
|
|
|
|
|
|
|
|
28 |
|
29 |
gradio_interface.launch()
|