Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,11 +68,7 @@ def get_response(system, context, myKey, raw=False):
|
|
| 68 |
message_with_stats = f"{message}\n\n================\n\n{statistics}"
|
| 69 |
# message_with_stats = markdown.markdown(message_with_stats)
|
| 70 |
|
| 71 |
-
|
| 72 |
-
message_with_stats, extensions=["fenced_code", "codehilite"]
|
| 73 |
-
)
|
| 74 |
-
# return message, parse_text(message_with_stats)
|
| 75 |
-
return message, message_with_stats
|
| 76 |
|
| 77 |
|
| 78 |
def predict(chatbot, input_sentence, system, context, myKey):
|
|
@@ -335,5 +331,5 @@ with gr.Blocks() as demo:
|
|
| 335 |
|
| 336 |
demo.title = "ChatGPT 🚀"
|
| 337 |
demo.queue(concurrency_count=5).launch(
|
| 338 |
-
server_name="0.0.0.0", share=
|
| 339 |
) # 改为 share=True 可以创建公开分享链接
|
|
|
|
| 68 |
message_with_stats = f"{message}\n\n================\n\n{statistics}"
|
| 69 |
# message_with_stats = markdown.markdown(message_with_stats)
|
| 70 |
|
| 71 |
+
return message, parse_text(message_with_stats)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
|
| 74 |
def predict(chatbot, input_sentence, system, context, myKey):
|
|
|
|
| 331 |
|
| 332 |
demo.title = "ChatGPT 🚀"
|
| 333 |
demo.queue(concurrency_count=5).launch(
|
| 334 |
+
server_name="0.0.0.0", share=True
|
| 335 |
) # 改为 share=True 可以创建公开分享链接
|