PanagiotisMark commited on
Commit
0e3a4be
1 Parent(s): eb4caaf
Files changed (1) hide show
  1. gradio_app.py +3 -3
gradio_app.py CHANGED
@@ -14,7 +14,7 @@ HEADERS = {
14
  def news_analysis(text):
15
  try:
16
  response = requests.post(
17
- f'{api_url}:{api_port}/news_analysis',
18
  json={
19
  'doc_id': '1',
20
  'text': text,
@@ -31,7 +31,7 @@ def news_analysis(text):
31
  def claim_verification(text):
32
  try:
33
  response = requests.post(
34
- f'{api_url}:{api_port}/claim_verification',
35
  json={
36
  'doc_id': '1',
37
  'text': text,
@@ -64,4 +64,4 @@ iface_claim_verification = gr.Interface(
64
  iface = gr.TabbedInterface([iface_news_analysis, iface_claim_verification], ["News Analysis", "Claim Verification"])
65
 
66
  # launch the interface
67
- iface.launch(server_name="0.0.0.0", server_port=7860)
 
14
  def news_analysis(text):
15
  try:
16
  response = requests.post(
17
+ f"{api_url}:{api_port}/news_analysis",
18
  json={
19
  'doc_id': '1',
20
  'text': text,
 
31
  def claim_verification(text):
32
  try:
33
  response = requests.post(
34
+ f"{api_url}:{api_port}/claim_verification",
35
  json={
36
  'doc_id': '1',
37
  'text': text,
 
64
  iface = gr.TabbedInterface([iface_news_analysis, iface_claim_verification], ["News Analysis", "Claim Verification"])
65
 
66
  # launch the interface
67
+ iface.launch(server_name="0.0.0.0", server_port=7860)