yxmnjxzx commited on
Commit
42aee0b
·
verified ·
1 Parent(s): 050c8b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -195,14 +195,14 @@ class GradioInterface:
195
  result.dict()
196
  )
197
 
198
- def apply_prompts(self,original_prompt: str, refined_prompt: str):
199
- original_output = self.prompt_refiner.apply_prompt(original_prompt)
200
- refined_output = self.prompt_refiner.apply_prompt(refined_prompt)
201
  return original_output, refined_output
202
 
203
- def launch(self):
204
- self.interface.launch()
205
-
206
  # Main code to run the application
207
  if __name__ == '__main__':
208
  api_key = os.getenv('GROQ_API_KEY')
 
195
  result.dict()
196
  )
197
 
198
+ def apply_prompts(self, original_prompt: str, refined_prompt: str, model: str):
199
+ original_output = self.prompt_refiner.apply_prompt(original_prompt, model)
200
+ refined_output = self.prompt_refiner.apply_prompt(refined_prompt, model)
201
  return original_output, refined_output
202
 
203
+ def launch(self, share=False):
204
+ self.interface.launch(share=share)
205
+
206
  # Main code to run the application
207
  if __name__ == '__main__':
208
  api_key = os.getenv('GROQ_API_KEY')