Akilesh commited on
Commit
2d5ae08
1 Parent(s): 67e2cf0

add examples

Browse files
Files changed (3) hide show
  1. .env_rag +3 -0
  2. .gitignore +3 -0
  3. app.py +11 -10
.env_rag ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ QDRANT_URL=your_qdrant_url
2
+ QDRANT_API_KEY=your_qdrant_api_key
3
+ OPENAI_API_KEY=your_openai_api_key
.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ bin/
2
+ env/
3
+ .env
app.py CHANGED
@@ -59,19 +59,20 @@ def generate_answer(message: str, history: list) -> str:
59
  new_response = respond(message)
60
  return new_response
61
 
 
62
  demo = gr.ChatInterface(
63
- fn=generate_answer,
64
- title="RAG App | Learn More About Me!",
65
- multimodal=False,
66
- retry_btn=None,
67
- undo_btn=None,
68
- clear_btn=None,
69
  examples=[
70
- "What is your name?",
71
- "What do you like to do for fun?",
72
- "What are you studying?"
73
  ]
74
  )
75
 
76
 
77
- demo.launch()
 
59
  new_response = respond(message)
60
  return new_response
61
 
62
+
63
  demo = gr.ChatInterface(
64
+ fn=generate_answer,
65
+ title="RAG App | Learn More About Me!",
66
+ multimodal=False,
67
+ retry_btn=None,
68
+ undo_btn=None,
69
+ clear_btn=None,
70
  examples=[
71
+ "What is your name?",
72
+ "What do you like to do for fun?",
73
+ "Tell me a fun fact about yourself."
74
  ]
75
  )
76
 
77
 
78
+ demo.launch()