Spaces:
Sleeping
Sleeping
Commit
·
99dc488
1
Parent(s):
e76c88c
Install search-and-learn
Browse files
app.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
@@ -7,6 +9,11 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
7 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
8 |
|
9 |
|
|
|
|
|
|
|
|
|
|
|
10 |
def respond(
|
11 |
message,
|
12 |
history: list[tuple[str, str]],
|
|
|
1 |
+
import os
|
2 |
+
import subprocess
|
3 |
import gradio as gr
|
4 |
from huggingface_hub import InferenceClient
|
5 |
|
|
|
9 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
10 |
|
11 |
|
12 |
+
if not os.path.exists("search-and-learn"):
|
13 |
+
subprocess.run(["git", "clone", "https://github.com/huggingface/search-and-learn"])
|
14 |
+
subprocess.run(["pip", "install", "-e", "./search-and-learn[dev]"])
|
15 |
+
|
16 |
+
|
17 |
def respond(
|
18 |
message,
|
19 |
history: list[tuple[str, str]],
|