Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,10 +28,10 @@ def generate_response(prompt, max_length=150, temperature=1.0):
|
|
| 28 |
|
| 29 |
|
| 30 |
# Create Gradio interface
|
| 31 |
-
def
|
| 32 |
response = generate_response(prompt)
|
| 33 |
return response
|
| 34 |
|
| 35 |
|
| 36 |
-
iface = gr.Interface(fn=
|
| 37 |
iface.launch()
|
|
|
|
| 28 |
|
| 29 |
|
| 30 |
# Create Gradio interface
|
| 31 |
+
def chat_with_repeatinfy(prompt):
|
| 32 |
response = generate_response(prompt)
|
| 33 |
return response
|
| 34 |
|
| 35 |
|
| 36 |
+
iface = gr.Interface(fn=chat_with_repeatinfy, inputs="text", outputs="text", title="OmniCode")
|
| 37 |
iface.launch()
|