HoneyTian commited on
Commit
ee399db
1 Parent(s): 45e5b5a
Files changed (3) hide show
  1. README.md +1 -1
  2. main.py +11 -3
  3. requirements.txt +3 -3
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🐠
4
  colorFrom: purple
5
  colorTo: green
6
  sdk: gradio
7
- sdk_version: 3.41.2
8
  app_file: main.py
9
  pinned: false
10
  ---
 
4
  colorFrom: purple
5
  colorTo: green
6
  sdk: gradio
7
+ sdk_version: 4.44.1
8
  app_file: main.py
9
  pinned: false
10
  ---
main.py CHANGED
@@ -156,14 +156,22 @@ def main():
156
 
157
  yield output
158
 
159
- model_name_choices = ["trained_models/lip_service_4chan", "trained_models/chinese_porn_novel"] \
160
- if platform.system() == "Windows" else \
 
 
161
  [
162
  "qgyd2021/lip_service_4chan", "qgyd2021/chinese_chitchat",
163
- "qgyd2021/chinese_porn_novel", "qgyd2021/few_shot_intent_gpt2",
164
  "qgyd2021/similar_question_generation",
165
  ]
166
 
 
 
 
 
 
 
167
  demo = gr.Interface(
168
  fn=fn_stream,
169
  inputs=[
 
156
 
157
  yield output
158
 
159
+ model_name_choices = [
160
+ "trained_models/lip_service_4chan",
161
+ "trained_models/chinese_porn_novel"
162
+ ] if platform.system() == "Windows" else \
163
  [
164
  "qgyd2021/lip_service_4chan", "qgyd2021/chinese_chitchat",
165
+ "qgyd2021/chinese_porn_novel", "qgyd2021/few_shot_intent_gpt2_base",
166
  "qgyd2021/similar_question_generation",
167
  ]
168
 
169
+ # model_name_choices = [
170
+ # "qgyd2021/lip_service_4chan", "qgyd2021/chinese_chitchat",
171
+ # "qgyd2021/chinese_porn_novel", "qgyd2021/few_shot_intent_gpt2_base",
172
+ # "qgyd2021/similar_question_generation",
173
+ # ]
174
+
175
  demo = gr.Interface(
176
  fn=fn_stream,
177
  inputs=[
requirements.txt CHANGED
@@ -1,9 +1,9 @@
1
- gradio==3.41.2
2
- pydantic==1.10.12
3
  thinc==7.4.6
4
  spacy==2.3.9
5
  transformers==4.30.2
6
  numpy==1.21.4
7
  tqdm==4.62.3
8
  torch==1.13.0
9
- datasets
 
1
+ gradio==4.44.1
2
+ pydantic==2.7.4
3
  thinc==7.4.6
4
  spacy==2.3.9
5
  transformers==4.30.2
6
  numpy==1.21.4
7
  tqdm==4.62.3
8
  torch==1.13.0
9
+ datasets==2.19.2