Spaces:
Runtime error
Runtime error
venky2k1
commited on
Commit
·
86f2f38
1
Parent(s):
b49d078
Resolved merge conflict in app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
<<<<<<< HEAD
|
2 |
import gradio as gr
|
3 |
from bug_detector import fix_code
|
4 |
|
@@ -11,7 +10,6 @@ gr.Interface(
|
|
11 |
outputs=gr.Textbox(label="Suggested Fixed Code"),
|
12 |
title="Code Fixer using CodeT5+"
|
13 |
).launch()
|
14 |
-
=======
|
15 |
from flask import Flask, request, jsonify
|
16 |
from flask_cors import CORS # Fix CORS issue
|
17 |
import torch
|
@@ -51,4 +49,4 @@ def detect_bug():
|
|
51 |
|
52 |
if __name__ == "__main__":
|
53 |
app.run(host="0.0.0.0", port=5000) # Ensure compatibility with Docker
|
54 |
-
|
|
|
|
|
1 |
import gradio as gr
|
2 |
from bug_detector import fix_code
|
3 |
|
|
|
10 |
outputs=gr.Textbox(label="Suggested Fixed Code"),
|
11 |
title="Code Fixer using CodeT5+"
|
12 |
).launch()
|
|
|
13 |
from flask import Flask, request, jsonify
|
14 |
from flask_cors import CORS # Fix CORS issue
|
15 |
import torch
|
|
|
49 |
|
50 |
if __name__ == "__main__":
|
51 |
app.run(host="0.0.0.0", port=5000) # Ensure compatibility with Docker
|
52 |
+
|