# -* coding:UTF-8 -* # !/usr/bin/env python import numpy as np import gradio as gr import os from PIL import Image from codeinterpreterapi import CodeInterpreterSession def codeinterpreter(prompt, files): async with CodeInterpreterSession(model="gpt-3.5-turbo") as session: response = await session.generate_response(prompt, files=files) return [response.content,response.files] app = gr.Interface( fn=swap_face, inputs=[ gr.TextBox(label="prompt",info="input the prompt"), gr.Files(), ], outputs=["text","gallery"] ) app.launch()