Skip to content

Commit

Permalink
Don't show API unless debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudotensor committed Apr 18, 2023
1 parent baaa5e4 commit 3548454
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
python generate.py --base_model=h2oai/h2ogpt-oig-oasst1-256-6.9b --chat=False --stream_output=False
"""

debug = False

import time
import os
os.environ['HF_HUB_DISABLE_TELEMETRY'] = '1'
from gradio_client import Client

client = Client("http://localhost:7860")
print(client.view_api(all_endpoints=True))
if debug:
print(client.view_api(all_endpoints=True))

instruction = "Who are you?"
iinput = ''
Expand Down

0 comments on commit 3548454

Please sign in to comment.