CSB261 commited on
Commit
5c645bd
·
verified ·
1 Parent(s): b4cda3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +47 -1
app.py CHANGED
@@ -38,7 +38,53 @@ def index():
38
  클로드모델_결과=클로드모델_결과,
39
  딥시크모델_결과=딥시크모델_결과)
40
 
41
- return render_template('index.html')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
  if __name__ == '__main__':
44
  app.run(debug=True)
 
38
  클로드모델_결과=클로드모델_결과,
39
  딥시크모델_결과=딥시크모델_결과)
40
 
41
+ return '''
42
+ <!DOCTYPE html>
43
+ <html lang="ko">
44
+ <head>
45
+ <meta charset="UTF-8">
46
+ <title>블로그 생성기</title>
47
+ </head>
48
+ <body>
49
+ <h1>참조글을 입력하세요</h1>
50
+ <form method="post" action="/">
51
+ <label>
52
+ <strong>참조글:</strong><br>
53
+ <textarea name="reference_text" rows="10" cols="50"></textarea>
54
+ </label>
55
+ <br>
56
+ <input type="submit" value="블로그 생성">
57
+ </form>
58
+ </body>
59
+ </html>
60
+ '''
61
+
62
+ @app.route('/result')
63
+ def result():
64
+ 일반모델_결과 = request.args.get('일반모델_결과', '')
65
+ 코히어모델_결과 = request.args.get('코히어모델_결과', '')
66
+ 지피티모델_결과 = request.args.get('지피티모델_결과', '')
67
+ 클로드모델_결과 = request.args.get('클로드모델_결과', '')
68
+ 딥시크모델_결과 = request.args.get('딥시크모델_결과', '')
69
+
70
+ return f'''
71
+ <!DOCTYPE html>
72
+ <html lang="ko">
73
+ <head>
74
+ <meta charset="UTF-8">
75
+ <title>생성된 블로그</title>
76
+ </head>
77
+ <body>
78
+ <h1>모델 처리 결과</h1>
79
+ <p><strong>일반모델:</strong> {일반모델_결과}</p>
80
+ <p><strong>코히어모델:</strong> {코히어모델_결과}</p>
81
+ <p><strong>지피티모델:</strong> {지피티모델_결과}</p>
82
+ <p><strong>클로드모델:</strong> {클로드모델_결과}</p>
83
+ <p><strong>딥시크모델:</strong> {딥시크모델_결과}</p>
84
+ <a href="/">다시 입력하기</a>
85
+ </body>
86
+ </html>
87
+ '''
88
 
89
  if __name__ == '__main__':
90
  app.run(debug=True)