Update app.py
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ with gr.Blocks(theme=theme_citrus) as demo:
|
|
| 60 |
gr.HTML('<a href="https://community.youth4climate.info/homepage" target="_blank">Youth4Climate (EU)</a>')
|
| 61 |
gr.HTML('<a href="https://www.instagram.com/fridaysforfuturemapa/?hl=de" target="_blank">Fridays for Future MAPA (Africa, Latin America, Asia-Pacific) </a>')
|
| 62 |
with gr.Column(scale=7):
|
| 63 |
-
|
| 64 |
|
| 65 |
#sustainability tips
|
| 66 |
SUSTAINABILITY_TIPS = [
|
|
@@ -173,4 +173,4 @@ def get_top_chunks(query, chunk_embeddings, text_chunks):
|
|
| 173 |
return top_chunks
|
| 174 |
|
| 175 |
|
| 176 |
-
|
|
|
|
| 60 |
gr.HTML('<a href="https://community.youth4climate.info/homepage" target="_blank">Youth4Climate (EU)</a>')
|
| 61 |
gr.HTML('<a href="https://www.instagram.com/fridaysforfuturemapa/?hl=de" target="_blank">Fridays for Future MAPA (Africa, Latin America, Asia-Pacific) </a>')
|
| 62 |
with gr.Column(scale=7):
|
| 63 |
+
demo = gr.ChatInterface(respond, type="messages")
|
| 64 |
|
| 65 |
#sustainability tips
|
| 66 |
SUSTAINABILITY_TIPS = [
|
|
|
|
| 173 |
return top_chunks
|
| 174 |
|
| 175 |
|
| 176 |
+
demo.launch()
|