Shreyas094 commited on
Commit
a7f62d7
·
verified ·
1 Parent(s): b2aeef2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -19,9 +19,6 @@ import logging
19
 
20
  # Set up basic configuration for logging
21
  logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
22
- # In the get_response_from_cloudflare function:
23
- logging.debug(f"Cloudflare API Response: {response.status_code}")
24
- logging.debug(f"Cloudflare API Response Content: {response.text[:100]}...")
25
 
26
  # Environment variables and configurations
27
  huggingface_token = os.environ.get("HUGGINGFACE_TOKEN")
@@ -358,6 +355,10 @@ Write a detailed and complete response that answers the following user question:
358
  response += chunk
359
  yield response # Yield partial response
360
 
 
 
 
 
361
  def vote(data: gr.LikeData):
362
  if data.liked:
363
  print(f"You upvoted this response: {data.value}")
 
19
 
20
  # Set up basic configuration for logging
21
  logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
 
 
 
22
 
23
  # Environment variables and configurations
24
  huggingface_token = os.environ.get("HUGGINGFACE_TOKEN")
 
355
  response += chunk
356
  yield response # Yield partial response
357
 
358
+ # In the get_response_from_cloudflare function:
359
+ logging.debug(f"Cloudflare API Response: {response.status_code}")
360
+ logging.debug(f"Cloudflare API Response Content: {response.text[:100]}...")
361
+
362
  def vote(data: gr.LikeData):
363
  if data.liked:
364
  print(f"You upvoted this response: {data.value}")