Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,11 +63,6 @@ chat_session = model.start_chat(
|
|
| 63 |
]
|
| 64 |
)
|
| 65 |
|
| 66 |
-
@app.route('/')
|
| 67 |
-
def index():
|
| 68 |
-
# Serve HTML content
|
| 69 |
-
return send_from_directory(directory='.', path='aforativemedia.html')
|
| 70 |
-
|
| 71 |
|
| 72 |
def generate_response(user_input):
|
| 73 |
"""Generate a response using Google Generative AI."""
|
|
@@ -91,6 +86,12 @@ iface = gr.Interface(
|
|
| 91 |
live=True
|
| 92 |
)
|
| 93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
def run_gradio():
|
| 95 |
iface.launch(share=True, inbrowser=False)
|
| 96 |
|
|
|
|
| 63 |
]
|
| 64 |
)
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
def generate_response(user_input):
|
| 68 |
"""Generate a response using Google Generative AI."""
|
|
|
|
| 86 |
live=True
|
| 87 |
)
|
| 88 |
|
| 89 |
+
@app.route('/')
|
| 90 |
+
def index():
|
| 91 |
+
# Serve HTML content
|
| 92 |
+
return send_from_directory(directory='.', path='aforativemedia.html')
|
| 93 |
+
|
| 94 |
+
|
| 95 |
def run_gradio():
|
| 96 |
iface.launch(share=True, inbrowser=False)
|
| 97 |
|