DeepLearning101 commited on
Commit
c98d831
1 Parent(s): 7942eff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -43,7 +43,7 @@ async def send_chat_message(LLM_URL, LLM_API, user_input):
43
  decoded_answer = urllib.parse.unquote(data["answer"])
44
  full_response.append(decoded_answer)
45
  except (IndexError, json.JSONDecodeError) as e:
46
- print(f"Error parsing line: {line}, error: {e}")
47
  continue
48
 
49
  if full_response:
@@ -84,7 +84,7 @@ examples = [
84
 
85
 
86
 
87
- TITLE = """<h1>Social Media Trends 💬 分析社群相關資訊,並判斷其正、負、中立等評價及趨勢 (數據大會跑很久)) </h1>"""
88
  SUBTITLE = """<h2><a href='https://www.twman.org' target='_blank'>TonTon Huang Ph.D. @ 2024/11 </a><br></h2>"""
89
  LINKS = """
90
  <a href='https://github.com/Deep-Learning-101' target='_blank'>Deep Learning 101 Github</a> | <a href='http://deeplearning101.twman.org' target='_blank'>Deep Learning 101</a> | <a href='https://www.facebook.com/groups/525579498272187/' target='_blank'>台灣人工智慧社團 FB</a> | <a href='https://www.youtube.com/c/DeepLearning101' target='_blank'>YouTube</a><br>
@@ -106,7 +106,7 @@ with gr.Blocks() as iface:
106
  inputs=user_input,
107
  outputs="text",
108
  examples=examples,
109
- allow_flagging="never"
110
  )
111
 
112
  iface.launch()
 
43
  decoded_answer = urllib.parse.unquote(data["answer"])
44
  full_response.append(decoded_answer)
45
  except (IndexError, json.JSONDecodeError) as e:
46
+ print(f"Skipping invalid line: {line}, error: {e}")
47
  continue
48
 
49
  if full_response:
 
84
 
85
 
86
 
87
+ TITLE = """<h1>Social Media Trends 💬 分析社群相關資訊,並判斷其正、負、中立等評價及趨勢 (數據大會跑很久或失敗) </h1>"""
88
  SUBTITLE = """<h2><a href='https://www.twman.org' target='_blank'>TonTon Huang Ph.D. @ 2024/11 </a><br></h2>"""
89
  LINKS = """
90
  <a href='https://github.com/Deep-Learning-101' target='_blank'>Deep Learning 101 Github</a> | <a href='http://deeplearning101.twman.org' target='_blank'>Deep Learning 101</a> | <a href='https://www.facebook.com/groups/525579498272187/' target='_blank'>台灣人工智慧社團 FB</a> | <a href='https://www.youtube.com/c/DeepLearning101' target='_blank'>YouTube</a><br>
 
106
  inputs=user_input,
107
  outputs="text",
108
  examples=examples,
109
+ flagging_mode="never" # 停用範例加載
110
  )
111
 
112
  iface.launch()