piyush2102020 commited on
Commit
082386a
·
verified ·
1 Parent(s): 45e9f64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -26,9 +26,7 @@ weights=torch.load("veronica_model/veronica_super_trained.pth",map_location='cpu
26
  model.load_state_dict(weights)
27
  model.eval()
28
  firebase_key_path = os.getenv("firebase_db_url")
29
- print("Firebase path :",firebase_key_path)
30
  creds=os.getenv("firebase_credentials")
31
- print("Creds :",creds)
32
  cred = json.loads(creds)
33
  cred = credentials.Certificate(cred)
34
  firebase_app = firebase_admin.initialize_app(cred, {
@@ -156,4 +154,4 @@ with gr.Blocks(theme=gr.themes.Monochrome()) as interface:
156
  submit_feedback.click(fn=clear_textboxes, inputs=[question_input, answer_input_human], outputs=[question_input, answer_input_human])
157
 
158
  # Launch interface
159
- interface.launch(share=True)
 
26
  model.load_state_dict(weights)
27
  model.eval()
28
  firebase_key_path = os.getenv("firebase_db_url")
 
29
  creds=os.getenv("firebase_credentials")
 
30
  cred = json.loads(creds)
31
  cred = credentials.Certificate(cred)
32
  firebase_app = firebase_admin.initialize_app(cred, {
 
154
  submit_feedback.click(fn=clear_textboxes, inputs=[question_input, answer_input_human], outputs=[question_input, answer_input_human])
155
 
156
  # Launch interface
157
+ interface.launch(share=False)