RefalMachine commited on
Commit
a7d91d4
·
verified ·
1 Parent(s): 9d49e57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -4,6 +4,9 @@ import os
4
  """
5
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
6
  """
 
 
 
7
  client = InferenceClient(os.getenv('MODEL_NAME_OR_PATH'))
8
 
9
 
@@ -66,4 +69,5 @@ demo = gr.ChatInterface(
66
 
67
 
68
  if __name__ == "__main__":
 
69
  demo.launch(share=True)
 
4
  """
5
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
6
  """
7
+ import requests
8
+
9
+
10
  client = InferenceClient(os.getenv('MODEL_NAME_OR_PATH'))
11
 
12
 
 
69
 
70
 
71
  if __name__ == "__main__":
72
+ print(requests.get(os.getenv('MODEL_NAME_OR_PATH')[:-3] + '/docs'))
73
  demo.launch(share=True)