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