Amirizaniani commited on
Commit
c4f0556
1 Parent(s): ba13098

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ load_dotenv()
11
  def generate_prompts(user_input):
12
  prompt_template = PromptTemplate(
13
  input_variables=["Question"],
14
- template=f"Generate 10 question prompts for {user_input}."
15
  )
16
  config = {'max_new_tokens': 64, 'temperature': 0.7, 'context_length': 64}
17
  llm = CTransformers(model="TheBloke/Mistral-7B-Instruct-v0.1-GGUF",
@@ -84,4 +84,4 @@ with gr.Blocks() as demo:
84
  Clear = gr.ClearButton([prompt_input, cbg, text], scale=1)
85
 
86
  # Launch the Gradio app
87
- demo.launch()
 
11
  def generate_prompts(user_input):
12
  prompt_template = PromptTemplate(
13
  input_variables=["Question"],
14
+ template=f"Just list 10 question prompts for {user_input} and don't put number before each of the prompts."
15
  )
16
  config = {'max_new_tokens': 64, 'temperature': 0.7, 'context_length': 64}
17
  llm = CTransformers(model="TheBloke/Mistral-7B-Instruct-v0.1-GGUF",
 
84
  Clear = gr.ClearButton([prompt_input, cbg, text], scale=1)
85
 
86
  # Launch the Gradio app
87
+ demo.launch(share=True)