Update app.py
Browse files
app.py
CHANGED
|
@@ -31,9 +31,7 @@ def respond(
|
|
| 31 |
#messages = [{"role": "system", "content": system_message}]
|
| 32 |
|
| 33 |
|
| 34 |
-
|
| 35 |
-
{"role": "user", "content": f"{massage}"}]
|
| 36 |
-
|
| 37 |
response = ""
|
| 38 |
|
| 39 |
|
|
@@ -60,11 +58,11 @@ demo = gr.ChatInterface(
|
|
| 60 |
),
|
| 61 |
],
|
| 62 |
)
|
| 63 |
-
|
| 64 |
|
| 65 |
if __name__ == "__main__":
|
| 66 |
demo.launch()
|
| 67 |
-
|
| 68 |
# Modify the Gradio interface
|
| 69 |
with gr.Blocks() as demo:
|
| 70 |
gr.Markdown("## RAG with PostgreSQL, pgvector, and OpenAI")
|
|
@@ -85,4 +83,5 @@ with gr.Blocks() as demo:
|
|
| 85 |
step=0.05,
|
| 86 |
label="Top-p (nucleus sampling)",
|
| 87 |
),]
|
|
|
|
| 88 |
demo.launch()
|
|
|
|
| 31 |
#messages = [{"role": "system", "content": system_message}]
|
| 32 |
|
| 33 |
|
| 34 |
+
messages = [{"role": "user", "content": f"{massage}"}]
|
|
|
|
|
|
|
| 35 |
response = ""
|
| 36 |
|
| 37 |
|
|
|
|
| 58 |
),
|
| 59 |
],
|
| 60 |
)
|
| 61 |
+
|
| 62 |
|
| 63 |
if __name__ == "__main__":
|
| 64 |
demo.launch()
|
| 65 |
+
"""
|
| 66 |
# Modify the Gradio interface
|
| 67 |
with gr.Blocks() as demo:
|
| 68 |
gr.Markdown("## RAG with PostgreSQL, pgvector, and OpenAI")
|
|
|
|
| 83 |
step=0.05,
|
| 84 |
label="Top-p (nucleus sampling)",
|
| 85 |
),]
|
| 86 |
+
if __name__ == "__main__":
|
| 87 |
demo.launch()
|