Spaces:
Runtime error
Runtime error
Abid Ali Awan
commited on
Commit
·
6ad7338
1
Parent(s):
1c5cb1c
made changes to the UI
Browse files- Images/cover.png +0 -0
- Images/diagram.png +0 -0
- README.md +4 -0
- app.py +7 -0
Images/cover.png
ADDED
|
Images/diagram.png
ADDED
|
README.md
CHANGED
|
@@ -10,6 +10,10 @@ pinned: false
|
|
| 10 |
license: apache-2.0
|
| 11 |
short_description: Real-time AI App with Groq API and LangChain
|
| 12 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
## To run the App
|
| 14 |
1. Generate the Groq API by going to the website: https://console.groq.com/keys.
|
| 15 |
2. Create the environment variable "Groq_API_Key" using the API.
|
|
|
|
| 10 |
license: apache-2.0
|
| 11 |
short_description: Real-time AI App with Groq API and LangChain
|
| 12 |
---
|
| 13 |
+
## Project Diagram
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
|
| 17 |
## To run the App
|
| 18 |
1. Generate the Groq API by going to the website: https://console.groq.com/keys.
|
| 19 |
2. Create the environment variable "Groq_API_Key" using the API.
|
app.py
CHANGED
|
@@ -58,6 +58,12 @@ def rag_memory_stream(text):
|
|
| 58 |
|
| 59 |
# Set up the Gradio interface
|
| 60 |
title = "Real-time AI App with Groq API and LangChain"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
demo = gr.Interface(
|
| 62 |
title=title,
|
| 63 |
fn=rag_memory_stream,
|
|
@@ -68,6 +74,7 @@ demo = gr.Interface(
|
|
| 68 |
max_batch_size=10000,
|
| 69 |
concurrency_limit=16,
|
| 70 |
allow_flagging=False,
|
|
|
|
| 71 |
)
|
| 72 |
|
| 73 |
# Launch the Gradio interface
|
|
|
|
| 58 |
|
| 59 |
# Set up the Gradio interface
|
| 60 |
title = "Real-time AI App with Groq API and LangChain"
|
| 61 |
+
description = """
|
| 62 |
+
<center>
|
| 63 |
+
<img src="https://huggingface.co/spaces/kingabzpro/Real-Time-RAG/resolve/main/Images/cover.png" alt="logo" width="550"/>
|
| 64 |
+
</center>
|
| 65 |
+
"""
|
| 66 |
+
|
| 67 |
demo = gr.Interface(
|
| 68 |
title=title,
|
| 69 |
fn=rag_memory_stream,
|
|
|
|
| 74 |
max_batch_size=10000,
|
| 75 |
concurrency_limit=16,
|
| 76 |
allow_flagging=False,
|
| 77 |
+
theme=gr.themes.Soft(),
|
| 78 |
)
|
| 79 |
|
| 80 |
# Launch the Gradio interface
|