KWRegan commited on
Commit
dbf69fe
·
1 Parent(s): aaab618
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -210,7 +210,7 @@ else:
210
  print("HF Token not found. Gated model download might fail.")
211
 
212
 
213
- def main(INPUT_FILE, OUTPUT_FILE, PROMPT_ID, PROMPT_TOPIC, MULTI_PV, NUM_WORDS, NUM_TOKENS, BEAM_WIDTH, ALPHA_MODE,
214
  MODEL_TAG):
215
  # %% Constants and Configuration
216
  # MODEL_NAME = "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B"
@@ -587,10 +587,10 @@ def main(INPUT_FILE, OUTPUT_FILE, PROMPT_ID, PROMPT_TOPIC, MULTI_PV, NUM_WORDS,
587
  #main(INPUT_FILE, OUTPUT_FILE, PROMPT_ID, PROMPT_TOPIC, MULTI_PV, NUM_WORDS, NUM_TOKENS, BEAM_WIDTH, ALPHA_MODE,
588
  #START_TURN, MODEL_TAG)
589
 
590
- def premain(ip, op):
591
  main("Kangaroos.txt", "KangaroosByQ06.lif", "KangarooEssay", "The Mating Habits of Kangaroos", 100, 1000, 10000, 1, 0, 1, "Qwen")
592
 
593
  demo = gr.Interface(fn=premain, inputs="text", outputs="text")
594
  #demo = gr.Interface(fn=premain)
595
- demo.launch(share=True)
596
 
 
210
  print("HF Token not found. Gated model download might fail.")
211
 
212
 
213
+ def main(INPUT_FILE, OUTPUT_FILE, PROMPT_ID, PROMPT_TOPIC, MULTI_PV, NUM_WORDS, NUM_TOKENS, BEAM_WIDTH, ALPHA_MODE, START_TURN,
214
  MODEL_TAG):
215
  # %% Constants and Configuration
216
  # MODEL_NAME = "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B"
 
587
  #main(INPUT_FILE, OUTPUT_FILE, PROMPT_ID, PROMPT_TOPIC, MULTI_PV, NUM_WORDS, NUM_TOKENS, BEAM_WIDTH, ALPHA_MODE,
588
  #START_TURN, MODEL_TAG)
589
 
590
+ def premain(ip):
591
  main("Kangaroos.txt", "KangaroosByQ06.lif", "KangarooEssay", "The Mating Habits of Kangaroos", 100, 1000, 10000, 1, 0, 1, "Qwen")
592
 
593
  demo = gr.Interface(fn=premain, inputs="text", outputs="text")
594
  #demo = gr.Interface(fn=premain)
595
+ demo.launch()
596