luodian commited on
Commit
61125ca
1 Parent(s): c1b9f62
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -84,7 +84,7 @@ def http_bot(image_input, text_input, request: gr.Request):
84
  "image": base64_image_str,
85
  }
86
  ],
87
- "token": "sk-OtterHD",
88
  }
89
 
90
  print(
@@ -95,7 +95,7 @@ def http_bot(image_input, text_input, request: gr.Request):
95
  },
96
  )
97
 
98
- url = "https://earl-thousands-amended-suburban.trycloudflare.com/app/otter"
99
  headers = {"Content-Type": "application/json"}
100
 
101
  response = requests.post(url, headers=headers, data=json.dumps(payload))
@@ -173,4 +173,4 @@ if __name__ == "__main__":
173
  )
174
  vqa_btn.click(fn=http_bot, inputs=[image_input, text_input], outputs=vqa_output)
175
 
176
- demo.launch(share=True)
 
84
  "image": base64_image_str,
85
  }
86
  ],
87
+ "token": "sk-OtterHD-1210",
88
  }
89
 
90
  print(
 
95
  },
96
  )
97
 
98
+ url = "http://otter.superconduct.co/app/otter"
99
  headers = {"Content-Type": "application/json"}
100
 
101
  response = requests.post(url, headers=headers, data=json.dumps(payload))
 
173
  )
174
  vqa_btn.click(fn=http_bot, inputs=[image_input, text_input], outputs=vqa_output)
175
 
176
+ demo.launch(share=False)