Spaces:
Running
Running
File size: 598 Bytes
73b954d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import gradio as gr
# Load the model
model_interface = gr.load("models/google/gemma-2-2b-it")
# Create a Gradio interface with custom title and logo
def main():
with gr.Blocks() as demo:
# Add the title
gr.Markdown("# Gemma 2b Demo")
# Add the logo
gr.Image("orYx logo.png", elem_id="logo", show_label=False, interactive=False)
# Embed the model interface inside a Row
with gr.Row():
model_interface.render() # Use render to include the prebuilt interface
demo.launch()
if __name__ == "__main__":
main() |