Spaces:
Runtime error
Runtime error
Upload with huggingface_hub
Browse files- app.py +5 -5
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -38,11 +38,11 @@ class ChatPrompt(minichain.TemplatePrompt):
|
|
| 38 |
result = out.split("Assistant:")[-1]
|
| 39 |
return inp.push(result)
|
| 40 |
|
| 41 |
-
class Human(minichain.Prompt):
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
fake_human = [
|
| 47 |
"I want you to act as a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do not write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like this}. My first command is pwd.",
|
| 48 |
"ls ~",
|
|
|
|
| 38 |
result = out.split("Assistant:")[-1]
|
| 39 |
return inp.push(result)
|
| 40 |
|
| 41 |
+
# class Human(minichain.Prompt):
|
| 42 |
+
# def parse(self, out: str, inp: State) -> State:
|
| 43 |
+
# return inp.human_input = out
|
| 44 |
+
|
| 45 |
+
|
| 46 |
fake_human = [
|
| 47 |
"I want you to act as a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do not write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like this}. My first command is pwd.",
|
| 48 |
"ls ~",
|
requirements.txt
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
-
gradio
|
| 2 |
git+https://github.com/srush/minichain@gradio
|
| 3 |
manifest-ml
|
|
|
|
|
|
| 1 |
+
gradio==3.21.0
|
| 2 |
git+https://github.com/srush/minichain@gradio
|
| 3 |
manifest-ml
|
| 4 |
+
faiss-cpu
|