uyen13 commited on
Commit
fc10cd6
·
1 Parent(s): 964c1fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,10 +7,10 @@ from langchain_g4f import G4FLLM
7
  from g4f import Provider, models
8
 
9
  app = Flask(__name__)
10
- @app.route("/<txt>")
11
- def t5(txt):
12
  prompt_template = """Write a concise summary of the following around 450 words:
13
- "{txt}"
14
  CONCISE SUMMARY:"""
15
  prompt = PromptTemplate.from_template(prompt_template)
16
  # Instantiate the LLM model
 
7
  from g4f import Provider, models
8
 
9
  app = Flask(__name__)
10
+ @app.route("/<text>")
11
+ def t5(text):
12
  prompt_template = """Write a concise summary of the following around 450 words:
13
+ "{text}"
14
  CONCISE SUMMARY:"""
15
  prompt = PromptTemplate.from_template(prompt_template)
16
  # Instantiate the LLM model