dev-gpt
dev-gpt copied to clipboard
Syntax error on playground/deploy
Hi, I am receiving this error after a deploy; https://gptdeploy-2a40107a67.wolf.jina.ai/playground/
File "/workdir/app.py", line 14
"""
^
SyntaxError: unterminated triple-quoted string literal (detected at line 19)
running from GPTdeploy deploy --path
Deploy a jina flow
[04/25/23 09:55:45] INFO Successfully submitted flow with ID flow.py:127
gptdeploy-2a40107a67
[04/25/23 09:55:46] INFO Check the Flow deployment logs: flow.py:487
https://dashboard.wolf.jina.ai/d-solo/f
low/flow-monitor?var-flow=2a40107a67&pa
nelId=101 !
╭──────────────────── 🎉 Flow is available! ─────────────────────╮
│ │
│ ID gptdeploy-2a40107a67 │
│ Gateway https://gptdeploy-2a40107a67.wolf.jina.ai │
│ Dashboard https://dashboard.wolf.jina.ai/flow/2a40107a67 │
│ │
╰────────────────────────────────────────────────────────────────╯
Your Microservice is deployed at https://gptdeploy-2a40107a67.wolf.jina.ai and the playground is available at https://gptdeploy-2a40107a67.wolf.jina.ai/playground
We open now the playground in your browser.
waiting for app to be ready...
Thanks for creating this issue.
Could you please provide the whole app.py
so that we can see where the generation failed?
Hi Florian, no worries.
I'll copy and paste the app.py found in the gateway folder:
import os
import json
import streamlit as st
from jina import Client, Document, DocumentArray
st.set_page_config(
page_title="Document Assistant",
page_icon="📚",
layout="centered",
)
st.title("📚 Document Assistant")
st.markdown(
"""
Welcome to the Document Assistant! This powerful tool can modify and answer questions about Microsoft Office files and PDF/TXT/EPUB files. It interprets user instructions, modifies the documents accordingly, and answers questions about the document content.
To get started, deploy your own microservice by clicking [here](https://github.com/jina-ai/gptdeploy). Once deployed, you can use the Document Assistant to process your documents.
Below is an example of how to send a request to the microservice using Python:
Is there anything else you would need?
Thank you for sharing the code! This looks like a context-length issue (output just stopped). We are currently working on minimising the system messages to avoid this issue.
This should become less often an issue due to: https://github.com/jina-ai/gptdeploy/pull/70 Will close the ticket for now.