yonikremer
commited on
Commit
โข
9c8dd72
1
Parent(s):
7924ca5
added user instructions
Browse files- app.py +5 -0
- user_instructions_hebrew.md +45 -0
app.py
CHANGED
@@ -65,3 +65,8 @@ with st.form("request_form"):
|
|
65 |
except (ValueError, TypeError, RuntimeError) as e:
|
66 |
st.error(e)
|
67 |
st.write(f"Generated text: {output}")
|
|
|
|
|
|
|
|
|
|
|
|
65 |
except (ValueError, TypeError, RuntimeError) as e:
|
66 |
st.error(e)
|
67 |
st.write(f"Generated text: {output}")
|
68 |
+
|
69 |
+
|
70 |
+
with open("user_instructions_hebrew.md", "r") as fh:
|
71 |
+
long_description = fh.read()
|
72 |
+
st.markdown(long_description)
|
user_instructions_hebrew.md
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# ืชืฉืชืืฉื ืืืืืื ืืงืืืฆืืช
|
2 |
+
|
3 |
+
ืืืื ืืื, ืืชื ืืืืืื ืืืฉืชืืฉ ืืงืืืช ืืืืืื ืืงืืืฆืืช.
|
4 |
+
|
5 |
+
ืชืืืจื ืืืื ืฉืืฉ ืื ืืคืืืช ืืืืง ืืื ืืชืื [ืืืืืจ](https://huggingface.co/models?pipeline_tag=text-generation&library=pytorch&sort=downloads)
|
6 |
+
ืชืืชืื ืืืืื ืืืจืืืช ืืจืืจืืช ืืชืืืจื ืืช ืืืจื ืืืงืกื ืฉืืชื ืจืืฆืื ืฉืืืืื ืืฆืืจ.
|
7 |
+
|
8 |
+
## ืขืฆืืช ืืืชืืืช ืืคืจืืืคื
|
9 |
+
|
10 |
+
1. ืชืฉืชืืฉื ืืืืื ืืืชืืื - ืื ืืืื ื ืืฆืจ ืืืฉืืื ืืกืืืืช. ืชืฉืืื ืืืชื ืืืื ืืืื ืืืืืจ ืืืฉืืื ืฉืืื
|
11 |
+
2. ืชืฉืงืืขื ืืืฉืื ืืืืจื ืืืงืกื ืฉืืชื ืจืืฆืื ืฉืืืืืืจืืชื ืืฆืืจ
|
12 |
+
3. ืชืืืจื ืฉืื ืจืง ืืื, ืืืื ืจืฅ ืขื ืืขืื ืืจืคื ืืื ืืืื ืืืื ืื ื ืืชื ืืืจืืฅ ืืืื ืืช ืืืืืืื ืืืืงืื ืืืืชืจ ืืื ืจืง ืืืืืื ืงืื ืื ืืคืืืืืื
|
13 |
+
3. ืชืืชืื ืืื ืืืืช ืืื ืืขืืจืืช. ืจืื ืืืืืืื ืื ืชืืืืื ืืขืืจืืช ืืื ืืืื ืฉืื, ืืืืขืื ืืชืืฆืืืช ืืจืื ืืืชืจ ืืืืืช ืืื ืืืืช
|
14 |
+
4. ืชืืืื ืืืืืืจืืชื ืืืืืง ืื ืืขืฉืืช - ืืชืืืื ืืืืจืื ืืืคืจืืื ืืช ืืืืงืื
|
15 |
+
|
16 |
+
ืืืืืื:
|
17 |
+
|
18 |
+
Instruction: """answer the following question with yes or no."""
|
19 |
+
|
20 |
+
Question: """PUT YOUR QUESTION HERE"""
|
21 |
+
|
22 |
+
Answer: """
|
23 |
+
|
24 |
+
5. ืืฉืชืืฉื ืืชืื ืืืช ืขื ืืืืืืช - ืืืืืื:
|
25 |
+
|
26 |
+
Instruction: """Label the following sentences to positive or negative"""
|
27 |
+
|
28 |
+
Sentence: """I love you""". Sentiment: """Positive"""
|
29 |
+
|
30 |
+
Sentence: """I hate you""". Sentiment: """Negative"""
|
31 |
+
|
32 |
+
Sentence: """your sentence here.""" Sentiment: """
|
33 |
+
|
34 |
+
6. ืื ืชืกืืืื ืืช ืืคืจืืืคื ืืจืืื
|
35 |
+
7. ืชืฉืชืืฉื ืืืืคืืฉ ืืืื ืืจื ื ืจืง ืื ืืืืืข ืืืื ืืจื ื ืืื ืงืจืืื ืืืฆืืืช ืืืฉืืื ืฉืืืืชื ืขื ืืืืืืจืืชื. ืืืืข ืื ืจืืืื ืื ืืืืื ืืช ืืืืืืจืืชื
|
36 |
+
8. ืชืขืืจื ืืืืืืืจืชื - ืชืกืคืงื ืืืืืืจืืชื ืืช ืื ืืืืืข ืื ืืจืฉ
|
37 |
+
9. ืืืฉืืืืช ืืกืืืืืช, ืืชืืืื ืืช ืืคืจืืืคื ืืืฉืคื "Let's think step by step"
|
38 |
+
10. ืชืืื ืกืคืืฆืคืืื
|
39 |
+
11. ืชืชืืืื ืืช ืืืฉืืื ืืขืฆืืื
|
40 |
+
|
41 |
+
ืืืืื:
|
42 |
+
|
43 |
+
Instruction: """Write your opinion about _____"""
|
44 |
+
|
45 |
+
Opinion: """In my opinion,
|