Spaces:
Runtime error
Runtime error
ishaan-mital
commited on
Commit
·
d12dd87
1
Parent(s):
f57bc73
initial commit
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import os
|
|
10 |
|
11 |
API_URL = "https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta"
|
12 |
headers = {"Authorization": f"Bearer {os.environ.get('API_KEY')}"}
|
13 |
-
retrieval = Client("https://ishaan-mital-ncert-helper-vector-db.hf.space/--replicas/
|
14 |
|
15 |
# embed_model_id = 'sentence-transformers/all-MiniLM-L6-v2'
|
16 |
# # device = f'cuda:{cuda.current_device()}' if cuda.is_available() else 'cpu'
|
@@ -75,4 +75,4 @@ def main(question):
|
|
75 |
demo = gr.Interface(main, inputs = "text", outputs = "text")
|
76 |
|
77 |
if __name__ == "__main__":
|
78 |
-
demo.launch()
|
|
|
10 |
|
11 |
API_URL = "https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta"
|
12 |
headers = {"Authorization": f"Bearer {os.environ.get('API_KEY')}"}
|
13 |
+
retrieval = Client("https://ishaan-mital-ncert-helper-vector-db.hf.space/--replicas/149bl5mjn/")
|
14 |
|
15 |
# embed_model_id = 'sentence-transformers/all-MiniLM-L6-v2'
|
16 |
# # device = f'cuda:{cuda.current_device()}' if cuda.is_available() else 'cpu'
|
|
|
75 |
demo = gr.Interface(main, inputs = "text", outputs = "text")
|
76 |
|
77 |
if __name__ == "__main__":
|
78 |
+
demo.launch(share=True)
|