Loaded as API: https://magaer13-mplug-owl.hf.space ✔
Client.predict() Usage Info
---------------------------
Named API endpoints: 0

Unnamed API endpoints: 9

 - predict(fn_index=0) -> (value_6, value_24)
    Parameters:
     - None
    Returns:
     - [Image] value_6: str (filepath or URL to image) 
     - [Textbox] value_24: str 

 - predict(fn_index=1) -> (value_24, value_29, value_30, value_31)
    Parameters:
     - None
    Returns:
     - [Textbox] value_24: str 
     - [Button] value_29: str 
     - [Button] value_30: str 
     - [Button] value_31: str 

 - predict(fn_index=2) -> (value_24, value_29, value_30, value_31)
    Parameters:
...
     - [Chatbot] value_21: str (filepath to JSON file) 
     - [Textbox] value_24: str 
     - [Button] value_27: str 

Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Loaded as API: https://abidlabs-en2fr.hf.space ✔
{for i in range(10)}
The translated result is: {x}
Loaded as API: https://abidlabs-en2fr.hf.space ✔
hello
'Bonjour.'
Loaded as API: https://gradio-calculator.hf.space ✔
StatusUpdate(code=<Status.STARTING: 'STARTING'>, rank=None, queue_size=None, eta=None, success=None, time=datetime.datetime(2023, 11, 9, 11, 23, 22, 482961), progress_data=None)
Loaded as API: https://gradio-count-generator.hf.space ✔
Client.predict() Usage Info
---------------------------
Named API endpoints: 2

 - predict(parameter_2, api_name="/count") -> value_8
    Parameters:
     - [Number] parameter_2: float 
    Returns:
     - [Textbox] value_8: str 

 - predict(parameter_2, api_name="/show") -> value_8
    Parameters:
     - [Number] parameter_2: float 
    Returns:
     - [Textbox] value_8: str 

Unnamed API endpoints: 0

Loaded as API: https://abidlabs-test-yield.hf.space ✔
True
Loaded as API: https://law.vmaig.com/ ✔
Client.predict() Usage Info
---------------------------
Named API endpoints: 1

 - predict(message, api_name="/chat") -> message
    Parameters:
     - [Textbox] message: str 
    Returns:
     - [Textbox] message: str 

Unnamed API endpoints: 2

 - predict(fn_index=8) -> 
    Parameters:
     - None
    Returns:
     - None

 - predict(fn_index=15) -> 
    Parameters:
     - None
    Returns:
     - None

Loaded as API: https://law.vmaig.com/ ✔
---------------------------------------------------------------------------
InvalidStatusCode                         Traceback (most recent call last)
c:\Users\30388\Desktop\python\pythontest\gradio_client2.ipynb Cell 7 line 6
      3 client = Client("https://law.vmaig.com", auth=("username", "password"))
      5 # client.view_api(all_endpoints=True)
----> 6 client.predict("杀人了",api_name="/chat")

File d:\python\lib\site-packages\gradio_client\client.py:305, in Client.predict(self, api_name, fn_index, *args)
    301 if self.endpoints[inferred_fn_index].is_continuous:
    302     raise ValueError(
    303         "Cannot call predict on this function as it may run forever. Use submit instead."
    304     )
--> 305 return self.submit(*args, api_name=api_name, fn_index=fn_index).result()

File d:\python\lib\site-packages\gradio_client\client.py:1456, in Job.result(self, timeout)
   1441 def result(self, timeout: float | None = None) -> Any:
   1442     """
   1443     Return the result of the call that the future represents. Raises CancelledError: If the future was cancelled, TimeoutError: If the future didn't finish executing before the given timeout, and Exception: If the call raised then that exception will be raised.
   1444 
ref='d:\python\lib\site-packages\gradio_client\client.py:1'>1</a>;32m   (...)
   1454         >> 9
   1455     """
-> 1456     return super().result(timeout=timeout)

File d:\python\lib\concurrent\futures\_base.py:458, in Future.result(self, timeout)
...
    333 self.extensions = self.process_extensions(
    334     response_headers, available_extensions
    335 )

InvalidStatusCode: server rejected WebSocket connection: HTTP 403
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Loaded as API: http://127.0.0.1:7861/ ✔
Client.predict() Usage Info
---------------------------
Named API endpoints: 1

 - predict(wuhu, api_name="/predict") -> output
    Parameters:
     - [Textbox] wuhu: str 
    Returns:
     - [Textbox] output: str 

Unnamed API endpoints: 0

Hello WorldHello!!
Loaded as API: https://abidlabs-music-separation.hf.space/--replicas/zlsmw/ ✔
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
c:\Users\30388\Desktop\python\pythontest\gradio_client2.ipynb Cell 12 line 4
      1 from gradio_client import Client
      3 client = Client("https://abidlabs-music-separation.hf.space/--replicas/zlsmw/")
----> 4 result = client.predict(
      5 		"audio_sample.wav",	
      6 		api_name="/predict"
      7 )
      8 # client.view_api(all_endpoints=True)
      9 print(result)

File d:\python\lib\site-packages\gradio_client\client.py:305, in Client.predict(self, api_name, fn_index, *args)
    301 if self.endpoints[inferred_fn_index].is_continuous:
    302     raise ValueError(
    303         "Cannot call predict on this function as it may run forever. Use submit instead."
    304     )
--> 305 return self.submit(*args, api_name=api_name, fn_index=fn_index).result()

File d:\python\lib\site-packages\gradio_client\client.py:1456, in Job.result(self, timeout)
   1441 def result(self, timeout: float | None = None) -> Any:
   1442     """
   1443     Return the result of the call that the future represents. Raises CancelledError: If the future was cancelled, TimeoutError: If the future didn't finish executing before the given timeout, and Exception: If the call raised then that exception will be raised.
   1444 
ref='d:\python\lib\site-packages\gradio_client\client.py:1'>1</a>;32m   (...)
...
   1158     response = requests.post(
   1159         self.client.api_url, headers=self.client.headers, data=data
   1160     )

ValueError: None
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Loaded as API: https://yuntian-deng-chatgpt4turbo.hf.space ✔
Client.predict() Usage Info
---------------------------
Named API endpoints: 0

Unnamed API endpoints: 5

 - predict(fn_index=1) -> 
    Parameters:
     - None
    Returns:
     - None

 - predict(fn_index=2) -> (type_an_input_and_press_enter, value_9)
    Parameters:
     - None
    Returns:
     - [Textbox] type_an_input_and_press_enter: str 
     - [Button] value_9: str 

 - predict(type_an_input_and_press_enter, topp_nucleus_sampling, temperature, parameter_16, parameter_4, fn_index=3) -> (value_4, value_16, status_code_from_openai_server, type_an_input_and_press_enter, value_9)
    Parameters:
     - [Textbox] type_an_input_and_press_enter: str 
     - [Slider] topp_nucleus_sampling: int | float 
     - [Slider] temperature: int | float 
...
     - [Textbox] status_code_from_openai_server: str 
     - [Textbox] type_an_input_and_press_enter: str 
     - [Button] value_9: str 

Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Loaded as API: https://abidlabs-music-separation.hf.space/--replicas/zlsmw/ ✔
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
c:\Users\30388\Desktop\python\pythontest\gradio_client2.ipynb Cell 12 line 4
      1 from gradio_client import Client
      3 client = Client("https://abidlabs-music-separation.hf.space/--replicas/zlsmw/")
----> 4 result = client.predict(
      5 		"audio_sample.wav",	
      6 		api_name="/predict"
      7 )
      8 # client.view_api(all_endpoints=True)
      9 print(result)

File d:\python\lib\site-packages\gradio_client\client.py:305, in Client.predict(self, api_name, fn_index, *args)
    301 if self.endpoints[inferred_fn_index].is_continuous:
    302     raise ValueError(
    303         "Cannot call predict on this function as it may run forever. Use submit instead."
    304     )
--> 305 return self.submit(*args, api_name=api_name, fn_index=fn_index).result()

File d:\python\lib\site-packages\gradio_client\client.py:1456, in Job.result(self, timeout)
   1441 def result(self, timeout: float | None = None) -> Any:
   1442     """
   1443     Return the result of the call that the future represents. Raises CancelledError: If the future was cancelled, TimeoutError: If the future didn't finish executing before the given timeout, and Exception: If the call raised then that exception will be raised.
   1444 
ref='d:\python\lib\site-packages\gradio_client\client.py:1'>1</a>;32m   (...)
...
   1158     response = requests.post(
   1159         self.client.api_url, headers=self.client.headers, data=data
   1160     )

ValueError: None
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Loaded as API: https://yuntian-deng-chatgpt4turbo.hf.space ✔
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
c:\Users\30388\Desktop\python\pythontest\gradio_client2.ipynb Cell 14 line 4
      1 from gradio_client import Client
      3 client = Client("yuntian-deng/ChatGPT4Turbo")
----> 4 client.predict("你的知识截止日期是什么时候？",1,0.5,"1","1", fn_index=3)

File d:\python\lib\site-packages\gradio_client\client.py:305, in Client.predict(self, api_name, fn_index, *args)
    301 if self.endpoints[inferred_fn_index].is_continuous:
    302     raise ValueError(
    303         "Cannot call predict on this function as it may run forever. Use submit instead."
    304     )
--> 305 return self.submit(*args, api_name=api_name, fn_index=fn_index).result()

File d:\python\lib\site-packages\gradio_client\client.py:1456, in Job.result(self, timeout)
   1441 def result(self, timeout: float | None = None) -> Any:
   1442     """
   1443     Return the result of the call that the future represents. Raises CancelledError: If the future was cancelled, TimeoutError: If the future didn't finish executing before the given timeout, and Exception: If the call raised then that exception will be raised.
   1444 
ref='d:\python\lib\site-packages\gradio_client\client.py:1'>1</a>;32m   (...)
   1454         >> 9
   1455     """
-> 1456     return super().result(timeout=timeout)

File d:\python\lib\concurrent\futures\_base.py:458, in Future.result(self, timeout)
...
    614 def file_to_json(file_path: str | Path) -> dict | list:
--> 615     with open(file_path) as f:
    616         return json.load(f)

FileNotFoundError: [Errno 2] No such file or directory: '1'