YaserDS-777 commited on
Commit
cffea61
·
verified ·
1 Parent(s): 63f9c9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -6,11 +6,9 @@ import os
6
  TOKEN = os.getenv("HUGGINGFACE_API_TOKEN_V")
7
  print('----------------',TOKEN,'-----------------')
8
  # Check if the API token is set
9
- if not api_token:
10
  raise ValueError("API token is not set. Please set the HUGGINGFACE_API_TOKEN environment variable.")
11
- import gradio as gr
12
- import requests
13
- import os
14
 
15
  def respond(
16
  message,
 
6
  TOKEN = os.getenv("HUGGINGFACE_API_TOKEN_V")
7
  print('----------------',TOKEN,'-----------------')
8
  # Check if the API token is set
9
+ if not TOKEN:
10
  raise ValueError("API token is not set. Please set the HUGGINGFACE_API_TOKEN environment variable.")
11
+
 
 
12
 
13
  def respond(
14
  message,