Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -245,10 +245,6 @@ def interactive_chat(question, openai_api_key, state=None):
|
|
| 245 |
|
| 246 |
import gradio as gr
|
| 247 |
|
| 248 |
-
def interactive_chat(query, api_key):
|
| 249 |
-
# Placeholder function: Replace this with actual chatbot logic
|
| 250 |
-
return f"Your query: {query}\nAPI Key: {'*' * len(api_key) if api_key else ''}"
|
| 251 |
-
|
| 252 |
# 🎨 Gradio UI
|
| 253 |
demo = gr.Interface(
|
| 254 |
fn=interactive_chat,
|
|
|
|
| 245 |
|
| 246 |
import gradio as gr
|
| 247 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 248 |
# 🎨 Gradio UI
|
| 249 |
demo = gr.Interface(
|
| 250 |
fn=interactive_chat,
|